export interface UserItem {
  id: string;
  gmtCreate: string;
  gmtModified: string;
  // deleted: false; // 软删除
  username: string;
  // password: "96e79218965eb72c92a549dd5a330112";
  nickName: string;
  // salt: null; // 盐
  // token: null;
  roleName: string;
}

export type UserList = UserItem[];

export interface GetUserListResponse {
  total: number;
  items: UserList;
}

export interface SaveUserParams
  extends Pick<UserItem, "username" | "nickName"> {
  password: string;
}

export interface RoleItem {
  id: string;
  roleName: string;
  gmtCreate: string;
  gmtModified: string;
  // deleted: false;
  // remark: null;
}

export type RoleList = RoleItem[];

export interface GetUserRoleListResponse {
  assignRoles: RoleList;
  allRolesList: RoleList;
}
